projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03069b
)
stringfilter: Don't crash if the expression returns ""
author
Benjamin Otte
<otte@redhat.com>
Sat, 27 Jun 2020 04:29:58 +0000
(06:29 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 4 Jul 2020 22:34:21 +0000
(
00:34
+0200)
gtk/gtkstringfilter.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstringfilter.c
b/gtk/gtkstringfilter.c
index ada86ea401e8e31459415df5365fb21a3a821b02..3fa924e9c35a0799eb69bfc0dd8db2929a3dbf43 100644
(file)
--- a/
gtk/gtkstringfilter.c
+++ b/
gtk/gtkstringfilter.c
@@
-110,9
+110,9
@@
gtk_string_filter_match (GtkFilter *filter,
!gtk_expression_evaluate (self->expression, item, &value))
return FALSE;
s = g_value_get_string (&value);
- if (s == NULL)
- return FALSE;
prepared = gtk_string_filter_prepare (self, s);
+ if (prepared == NULL)
+ return FALSE;
switch (self->match_mode)
{